/*
 * NaoPossuiQuantidadeException.java
 *
 * Created on August 5, 2007, 7:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package tcc.exception.business.produto;

import tcc.exception.business.*;


public class NaoPossuiQuantidadeException extends TccBusinessException {
    static final long serialVersionUID = -3387516993124229948L;
    private static final String message = "O produto possui este componente mas em quntidade inferior a informada[{0}]";
    
    
    /**
     * Constructs a new exception with <code>null</code> as its detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     */
    public NaoPossuiQuantidadeException(Double qtd) {
        super(String.format(message,qtd));
    }
    
    public NaoPossuiQuantidadeException(Double qtd, Throwable cause) {
        super(String.format(message,qtd), cause);
    }
   
}
